<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%><%@taglib
	uri="http://java.sun.com/jsf/core" prefix="f"%><%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="styles/style.css" type="text/css" rel="stylesheet"></link>
<title>Insert title here</title>
</head>
<body>
<div class="mainBackground">
			<div class="innerBackground">
<f:view>
	<f:loadBundle basename="resources.VisionClickResources" var="msg"/>
	<div class="login">
	<div class="tableHead" style="width:350px;">Register</div>
	<h:form>
		<h:panelGrid border="0" columns="2" width="350">
			<h:outputText value="#{msg.UserName}"></h:outputText>
			<h:inputText value="#{registerBean.userName}" id="userName" required="true" styleClass="inputText">
				</h:inputText>
				<h:outputText value="#{msg.Email}"></h:outputText>
			<h:panelGroup>
			<h:inputText value="#{registerBean.email}" required="true" id="email" validator="#{registerBean.validateEmail}" styleClass="inputText"></h:inputText>
			<h:message for="email" errorClass="error"></h:message>
			</h:panelGroup>
			<h:outputText value="#{msg.UserPassword}"></h:outputText>
			<h:inputSecret value="#{registerBean.password}" required="true" id="password" styleClass="inputText"></h:inputSecret>
			<h:outputText value="#{msg.ConfirmPassword}"></h:outputText>
			<h:inputSecret value="#{registerBean.confirmPassword}" required="true" id="confirmpassword" styleClass="inputText"></h:inputSecret>
			<h:outputText value=""/>
			<h:panelGroup>
				<h:commandButton value="#{msg.Login}" action="login"></h:commandButton>
				<h:commandButton value="#{msg.RegisterImmedidate}" action="#{registerBean.registe}"></h:commandButton>
			</h:panelGroup>
		</h:panelGrid>
	</h:form>
	</div>
	</f:view>
	</div>
	</div>
</body>
</html>